const resolvePath = require('./paths')
// const VueLoaderPlugin = require('vue-loader/lib/plugin');
const { VueLoaderPlugin } = require('vue-loader') // vue-loader v15需要加，v14不用

//生产环境 配置参数！
module.exports = {
    entry: './src/main.js',
    resolve: {
        extensions: ['.js', '.json', '.ts', '.jsx', '.vue'],
        alias: {
            '@': resolvePath('src'),
        }
    },
    module: {
        rules: [
            {
                test: /\.vue$/,
                use: ['vue-loader']
            }
        ]
    },
    plugins: [
        new VueLoaderPlugin(),
    ],
}